﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{sdcms[webname]} - powered by sdcms</title>
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/public.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user_base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user_bind.css" rel="stylesheet" type="text/css" />
<script>var webroot="{webroot}";</script>
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
<script src="{webroot}lib/js/mobile.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
<script src="{webroot}lib/dialog/artdialog.js"></script>
<script>
$(function(){
	$(".delete").click(function(){
		var id;
		id=$(this).attr("rel");
			dialog({
				content:'\u786e\u5b9a\u8981\u5220\u9664\uff1f\u0028\u4e0d\u53ef\u6062\u590d\uff01\u0029',
				ok:function(){
					var url,data;
					url='?act=del&id='+id;
					$.ajax({
					type:"get",
					cache:false,
					url:url,
					success:function(_)
					{
						var act=_.substring(0,1);
						var info=_.substring(1);
						switch(act)
						{
							case "0":
								$.fn.tips({type:"error",content:info});
								break;
							case "1":
								$.fn.tips({type:"ok",content:info});
								$("#content_"+id).fadeOut('slow');
								setTimeout(function(){location.href='?';},1000)
								break;
						}
					}
					});
									
					},
				cancel:true 
			}).showModal();
		
		});
		$("#user_menu_06").addClass("hover");
})
</script>
</head>
<body>
    {sdcms:include("../sdcms_head.asp")}
    
    <div id="position">您所在的位置：<a href="{webroot}">首页</a> > <a href="./">会员中心</a></div>
    <div class="w980 mt10 mc">
        {sdcms:include("sdcms_menu.asp")}
        <div class="right_big">
            <div class="b">
                <div class="subject">我的收藏</div>
                <div class="p12">
                
                {dim userdata:userdata=sdcms.userinfo}
                <table id="tablelist">
                    <tr>
                        <th>标题</th>
                        <th width="170">收藏日期</th>
                        <th width="60">管理</th>
                    </tr>
                    {sdcms:rs field="sd_user_favorite.id,title,contentid,sd_user_favorite.createdate" table="sd_user_favorite" join="left join sd_content on sd_user_favorite.contentid=sd_content.id" where="sd_user_favorite.userid=[userdata(0)] and sd_content.islock=1" order="sd_user_favorite.id desc" pagesize="20" isadminurl="0"}
                    {rs:eof}
                    <tr>
                        <td colspan="3" class="item" align="center">没有收藏</td>
                    </tr>
                    {/rs:eof}
                    <tr id="content_{$rs[id]}">
                        <td class="item"><a href="../show.asp?id={$rs[contentid]}" target="_blank">{$rs[title]}</a></td>
                        <td align="center">{$rs[createdate]}</td>
                        <td align="center"><a href="javascript:;" class="delete" rel="{$rs[id]}">删除</a></td>
                    </tr>
                    {/sdcms:rs}
                </table>
                <div class="list_page">{showpage}</div>
                
                </div>
            </div>
        </div>
    </div>
    {sdcms:include("../sdcms_foot.asp")}